<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wechat_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat_id" data-rule="required" data-source="wddj/user/wechat/index" data-field="nickname" class="form-control selectpage" name="row[wechat_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('License_plate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-license_plate" data-rule="required" class="form-control" name="row[license_plate]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vehicle_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <select  id="c-vehicle_type" data-rule="required" class="form-control selectpicker" name="row[vehicle_type]">
                {foreach name="vehicleTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="微型"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vehicle_brand')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-vehicle_brand_id" data-rule="required" class="form-control selectpicker" name="row[vehicle_brand_id]">
                <option value="">请选择车辆品牌</option>
                {foreach name="brandList" item="vo"}
                    <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vehicle_model')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vehicle_model" data-rule="required" class="form-control" name="row[vehicle_model]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vehicle_color')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vehicle_color" data-rule="required" class="form-control" name="row[vehicle_color]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Front_photo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-front_photo" class="form-control" size="50" name="row[front_photo]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-front_photo" class="btn btn-danger plupload" data-input-id="c-front_photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-front_photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-front_photo" class="btn btn-primary fachoose" data-input-id="c-front_photo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-front_photo"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-front_photo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Side_photo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-side_photo" class="form-control" size="50" name="row[side_photo]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-side_photo" class="btn btn-danger plupload" data-input-id="c-side_photo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-side_photo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-side_photo" class="btn btn-primary fachoose" data-input-id="c-side_photo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-side_photo"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-side_photo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_default')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="['0'=>'否','1'=>'是']" item="vo"}
            <label for="row[is_default]-{$key}"><input id="row[is_default]-{$key}" name="row[is_default]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form> 